package com.bdqn.mapper;

import com.bdqn.pojo.Supplier;
import com.bdqn.pojo.SysUser;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface SysUserMapper {
    SysUser getAccount(@Param("account")String account, @Param("password")String password);

    int getCount();
    List<SysUser> getUserList(@Param("pageIndex")int pageIndex,@Param("pageSize")int pageSize,@Param("queryRealName") String queryRealName,@Param("queryRoleId") Integer queryRoleId);

    int getPwd(@Param("oldPassword")String oldPassword,@Param("account")String account);


    int savePassword(@Param("account")String account,@Param("pwd")String pwd);

    int del(@Param("id")Integer id);

    int getAccountC(@Param("account") String account);
    SysUser getSysUser(@Param("id") Integer sysUserId);
    SysUser getAccountA(@Param("account") String account);
     public SysUser selectAccountA(@Param("account") String account);
    int add(@Param("sysUser") SysUser sysUserAdd);
    public int addUser(SysUser sysUser);
}
